const express = require('express');
const userInfo = require('../../app/controllers/userInfo.server.controller.js');

module.exports = (app) => {
    const router = express.Router();
    router.route('/getUserInfoByUserId/:userId')
    .get(userInfo.getUserInfoByUserId);

    router.route('/addUserInfo')
    .post(userInfo.addUserInfo);

    app.use('/user', router);
};